package com.jichangxiu.system.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.jichangxiu.system.entity.bo.SysRoleMenuBo;
import com.jichangxiu.system.entity.po.SysRoleMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * SysRoleMenuMapper:
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:41
 */
@Mapper
public interface SysRoleMenuMapper extends MPJBaseMapper<SysRoleMenu> {

    /**
     * 根据租户ID和用户ID查询角色菜单关联
     *
     * @param tenantId   租户ID
     * @param userIdList 用户ID列表
     * @return 角色菜单关联列表
     */
    public List<SysRoleMenuBo> listsByUserId(String tenantId, List<String> userIdList);

}